/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rmiserver;

import java.io.Serializable;

/**
 * Билет на автобусный маршрут
 * @author alexxxey
 */
public class Ticket implements Serializable
{  
    /**
     * @param tripId Идентификатор маршрута
     * @param place Номер места
     * @param manId Номер паспорта 
     * @param firstName Имя 
     * @param lastName Фамилия
     */
    public Ticket(int tripId, int place, int manId, String firstName, 
            String lastName)
    {
        m_tripId = tripId;
        m_place = place;
        m_manId = manId;
        m_firstName = firstName;
        m_lastName = lastName;         
    }
                
    public void setTripId(int tripId) { m_tripId = tripId; }
    public int getTripId() { return m_tripId; }
    
    public void setPlace(int place) { m_place = place; }
    public int getPlace() { return m_place; }
    
    public void setManId(int manId) { m_manId = manId; }
    public int getManId() { return m_manId; }
    
    public void setFirstName(String firstName) { m_firstName = firstName; }
    public String getFirstName() { return m_firstName; }
    
    public void setLastName(String lastName) { m_lastName = lastName; }
    public String getLastName() { return m_lastName; }
    
    private int m_tripId;
    private int m_place;
    private int m_manId;
    private String m_firstName;
    private String m_lastName;
}
